package com.fui.service.impl;

import com.fui.dao.UserDao;
import com.fui.domain.SmbmsUser;
import com.fui.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<SmbmsUser> queryUser() {

        return userDao.queryAllUser();
    }

    @Override
    public boolean modifyUser(SmbmsUser user) {
        return false;
    }

    @Override
    public boolean delUser(SmbmsUser user) {
        return false;
    }

    @Override
    public List<SmbmsUser> queryUser(SmbmsUser user) {

        return userDao.queryUser(user);
    }

    /**
     * 添加用户
     *
     * @param user
     * @return
     */
    @Override
    public int addUser(SmbmsUser user) {

        return userDao.addUser(user);
    }
}
